package de.rj.urwalking.data;

import android.content.Context;

import com.threed.jpct.Loader;
import com.threed.jpct.Object3D;
import com.threed.jpct.RGBColor;

import de.rj.urwalking.R;

public class UserArrow extends Object3D {

	private float rotation = 0;
	
	public UserArrow(Context context) {
		super(Loader.loadOBJ(
				context.getResources().openRawResource(R.raw.user_arrow), null, 1.0f)[0], true);
	
		setAdditionalColor(new RGBColor(0, 250, 0));
		strip();
		build();
		
	}
	

	public void rotateTo(float newRotation){
		
		float rotationDiff = newRotation - rotation;
		rotateZ(rotationDiff);
		
		rotation = newRotation;
		
	}
	
	
	
}
